package dom.domain;

/**
 * Subtype entity. @author MyEclipse Persistence Tools
 */

public class Subtype implements java.io.Serializable {

	// Fields

	private SubtypeId id;
	private String name;
	private Integer expertNo;
	// Constructors

	/** default constructor */
	public Subtype() {
	}

	/** full constructor */
	public Subtype(SubtypeId id, String name) {
		this.id = id;
		this.name = name;
	}
	// Property accessors
	
	public SubtypeId getId() {
		return this.id;
	}
	
	public Integer getExpertNo() {
		return expertNo;
	}

	public void setExpertNo(Integer expertNo) {
		this.expertNo = expertNo;
	}

	public void setId(SubtypeId id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "{name:'" + name + "', expertNo:'" + expertNo + "', sid:'" + id.getSid()
				+ "', gid:'" + id.getGid() + "'}";
	}

	

}
